<template>
  <div>
    <div class="occupy" />
    <div class="nav_bar">
      {{ title }}
      <div class="left_btn" @click="clickLeft">
        <i class="el-icon-arrow-left" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  methods: {
    clickLeft () {
      this.$emit('onClickLeftBtn');
    }
  }
};
</script>

<style lang="scss" scoped>
  .occupy {
    width: 100%;
    height: 0.9rem;
  }
  .nav_bar {
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 0.9rem;
    padding: 0 0.9rem;
    font-weight: 500;
    font-size: 0.36rem;
    line-height: 0.9rem;
    text-align: center;
    color: #354569;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background-color: #fff;
    z-index: 9999;
  }
  .left_btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.8rem;
    height: 0.9rem;
    text-align: center;
  }
</style>
